package end.ser;

import java.util.List;

import end.bean.shiro.Role;
import end.dao.BaseMapper;

/**
 * 
 * ManagerSER.java 2016-6-25
 * 
 * Copyright zhaocj Inc. All rights reserved. Love Me Like Love Justin Bieber
 */
public interface RoleSER<T> extends BaseMapper<T> {
    public List<T> queryRolesByManagerId(Integer id);

	public Integer[] queryRoleRightsByManager(Integer id);

	public boolean saveRoleAuthByManager(Integer[] roleID, Integer managerID);

	public boolean isRoleCodeAlreadyUsed(Role role);

	public boolean modifyRole(Role role); 
}
